module rampvargen
		(SEL, gain, offset);
input	[1:0]	SEL;
output	[3:0]	gain;
output	[13:0]	offset;

reg		[3:0]	gain;
reg		[13:0]	offset;

always @(SEL)
case (SEL)
	2'b00:
		begin
			gain <= 1;
			offset <= 14'h1FFF;
		end
	2'b01:
		begin
			gain <= 2;
			offset <= 14'h1FFF;
		end
	2'b10:
		begin
			gain <= 4;
			offset <= 14'h1FFF;
		end
	2'b11:
		begin
			gain <= 8;
			offset <= 14'h1FFF;
		end
	default:
		begin
			gain <= 8;
			offset <= 14'h1FFF;
		end
endcase
endmodule
		